import pyglet

from cocos.scene import Scene
from cocos.layer import Layer
from cocos.sprite import Sprite
from cocos.director import director
from cocos.scenes import *

from MainMenu import L_MainMenu

# This is the first scene of a game
# Simply pass it an image with the copyright and license
# terms.
class L_CopyrightLicense (Layer):
  is_event_handler=True
  def __init__(self):
    super(L_CopyrightLicense,self).__init__()
    img=Sprite('splash.png', anchor=(0,0))
    self.add(img)

  def on_mouse_press(self,x,y,button,modifier):
    director.replace(RotoZoomTransition(Scene(L_MainMenu())))

